package com.rustic.server.vo;

import cn.hutool.core.bean.BeanUtil;
import com.rustic.server.po.Rustic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 表[rustic]对应VO类
 *
 * @author auto
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RusticWebVO extends UserInteractionStatusVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 联系人手机号码
     */
    @ApiModelProperty(value = "联系人手机号码", dataType = "String")
    private String mobile;

    /**
     * 乡村名
     */
    @ApiModelProperty(value = "乡村名", dataType = "String")
    private String name;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介", dataType = "String")
    private String briefIntro;

    /**
     * 介绍
     */
    @ApiModelProperty(value = "介绍", dataType = "String")
    private String introduce;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区", dataType = "String")
    private String address;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", dataType = "String")
    private String detailedAddress;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面", dataType = "String")
    private String cover;

    /**
     * 图片(轮播图)
     */
    @ApiModelProperty(value = "图片(轮播图)", dataType = "String")
    private String images;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", dataType = "Date")
    private Date updateTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;

    public RusticWebVO(Rustic rustic) {
        if (rustic != null) {
            BeanUtil.copyProperties(rustic, this);
        }
    }
}
